package com.yupi.oj.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.oj.model.entity.RecordAiNumber;
import org.apache.ibatis.annotations.Update;

/**
* @author 兰飞宇
* @description 针对表【record_ai_number(记录用户调用AI次数)】的数据库操作Mapper
* @createDate 2025-03-22 16:56:37
* @Entity generator.domain.RecordAiNumber
*/
public interface RecordAiNumberMapper extends BaseMapper<RecordAiNumber> {
    @Update("update record_ai_number set number = 0 where userRole = 'user'")
    public void resetNumber();
}




